feat: emit PR review completion events - #90
Conversation
Co-Authored-By: Codex <noreply@openai.com>
🤖 Codex PR Review🚫 Merge blocked: 2 serious issue(s) found in high-risk files 🚫 Blocking IssuesThese issues must be fixed before this PR can be merged: 1. 🟠 [HIGH] Logic in
|
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4a7e7b64d1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| sent = send_telegram_alert( | ||
| text=format_review_event_notification(event), | ||
| token=token, | ||
| chat_ids=chat_ids, | ||
| ) | ||
| return {"status": "sent" if sent else "failed"} |
There was a problem hiding this comment.
Avoid retrying partially delivered Telegram alerts
When multiple Telegram chat IDs are configured and one of them fails, send_telegram_alert has already attempted delivery to every chat but returns a single false aggregate; this maps the whole review event to failed, so the emitter treats it as retryable and the store will not deduplicate it. In that partial-failure scenario, the chats that did receive the message get the same PR review notification again on each retry instead of only retrying the failed recipient or recording a partial status.
Useful? React with 👍 / 👎.
|
PERMANENT_FREEZE/CLOSE_RESLICE: final closure is exhausted. Current-head review found two reachable blockers: rerun attempts share the same notification identity, and a skipped review step can still emit a completion event. Evidence, branch, commits, tests, and review history are preserved. No second closure, rerun, merge, deploy, or automatic successor. |
Summary
Safety boundaries
continue-on-errorand cannot override the Codex Review result/etc/codex-audit-bridge/telegram.envprovisioningVerification
python3 -m pytest -q— 662 passed, 1 skipped, 64 subtests passednode --test cloudflare/codex-audit-proxy/tests/index.test.mjs— 14 passedpython3 -m compileall -q scripts service testsactionlint .github/workflows/codex_pr_review.yml .github/workflows/vps_codex_service_ops.ymlbash -n scripts/deploy_codex_audit_service.shshellcheck --severity=error scripts/deploy_codex_audit_service.shgit diff --checkKnown bounded behavior
Notification delivery is at-least-once. A process crash after Telegram accepts a message but before the sent state is persisted can produce a duplicate; the existing heartbeat remains the reconciliation fallback.